package com.shop.bean;

public class OrderDetail {
    private Integer id;
    private String orderId;
    private Integer goodsId;
    private Float price;
    private Integer number;

    public OrderDetail() {
    }

    public OrderDetail(Integer id, String orderId, Integer goodsId, Float price, Integer number) {
        this.id = id;
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.price = price;
        this.number = number;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", goodsId=" + goodsId +
                ", price=" + price +
                ", number=" + number +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}
